<?php
class ml_tool_suggestlog
{
    
    static public function add_suggest_log($op_uid, $content)
    {
        //过滤非正常访问
        if(ml_tool_ua::is_fake_visitor())
            return false;
        $_controller = ml_factory::get_controller();
        $wbinfo = $_controller->loginProxy('getWeiboInfo');
        $wb_uid = $wbinfo['weiboID'];
        $aLog = array(
            time(),
            Tool_ip::get_real_ip(),
            $op_uid?$op_uid:0,
            $wb_uid?$wb_uid:0,
            ml_tool_ua::get_usign(),
            $content,
            Tool_ip::getLocalLastIp()
        );
        $sLog = implode("\t" , $aLog);
        Tool_logger::scrib_log('meila-debug_suggestlog' , $sLog);
        ml_tool_async::wx_action_log($sLog , $_SERVER['SCRIPT_NAME']);
        return true;
    }
}